<div id = "footer" style="text-align: center;">
    2015 All rights reserved. maoshen.net.cn copyright 猫の家
</div>

<?php
    $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
    if($config->phpSettings->display_data) {
        $dbAdapter = Zend_Db_Table::getDefaultAdapter();
        $profiler = $dbAdapter->getProfiler();
        echo '<div class = "profiler">';
        echo "数据库查询次数：".$profiler->getTotalNumQueries()."<br />";
        $queries = $profiler->getQueryProfiles();
        $i = 0;
        if ($queries){
            foreach ($queries as $query){
                echo "<dl>";
                echo "<dt>时间：".$query->getElapsedSecs()."</dt>";
                echo "<dd>语句：".$query->getQuery()."</dd>";
                echo "</dl>";
                $i++;
            }
        }
        echo "查询时间总计：".$profiler->getTotalElapsedSecs();
        echo '</div>';
    }
?>

